package Main;

import java.applet.Applet;
import java.awt.BorderLayout;

import GameFiles.GameManager;
import Gui.GameFrame;

public class GameApplet extends Applet
{
	/**
	 * <APPLET ARCHIVE="game.jar" CODE="gsp420.game.GameApplet.class" WIDTH=90%
	 * HEIGHT=90%></APPLET>
	 */
	private static final long serialVersionUID = 4589616916588049174L;

	public GameApplet()
	{
	}

	public void init()
	{
		try{
		GameManager.getInstance().InitializeGame();
		}catch(Exception e){}
		setLayout(new BorderLayout());
		add(GameFrame.getInstance(), BorderLayout.CENTER);
		Thread t = new Thread(GameManager.getInstance());
		t.start();
	}

	public void start()
	{
	}

	public void stop()
	{
	}

	public void destroy()
	{
	}
}
